import Theme from 'vitepress/dist/client/theme-default'
import Icon from '../../../src/components/icon'
import Button from '../../../src/components/button'

// 新增
// 主题样式
import 'vitepress-theme-demoblock/theme/styles/index.css'
// 插件的组件，主要是demo组件
import { registerComponents } from './register-components.js'

export default {
    ...Theme,
    enhanceApp({ app }) {
        app.use(Icon)
        app.use(Button)

        // 新增
        registerComponents(app)
    }
}
